type go.uber.org/zap/zapcore.jsonEncoder
72 uses
go.uber.org/zap/zapcore (current package)
console_encoder.go#L47: *jsonEncoder
console_encoder.go#L67: return consoleEncoder{c.jsonEncoder.Clone().(*jsonEncoder)}
console_encoder.go#L133: context := c.jsonEncoder.Clone().(*jsonEncoder)
json_encoder.go#L37: var _jsonPool = pool.New(func() *jsonEncoder {
json_encoder.go#L38: return &jsonEncoder{}
json_encoder.go#L41: func putJSONEncoder(enc *jsonEncoder) {
json_encoder.go#L54: type jsonEncoder struct {
json_encoder.go#L81: func newJSONEncoder(cfg EncoderConfig, spaced bool) *jsonEncoder {
json_encoder.go#L93: return &jsonEncoder{
json_encoder.go#L100: func (enc *jsonEncoder) AddArray(key string, arr ArrayMarshaler) error {
json_encoder.go#L105: func (enc *jsonEncoder) AddObject(key string, obj ObjectMarshaler) error {
json_encoder.go#L110: func (enc *jsonEncoder) AddBinary(key string, val []byte) {
json_encoder.go#L114: func (enc *jsonEncoder) AddByteString(key string, val []byte) {
json_encoder.go#L119: func (enc *jsonEncoder) AddBool(key string, val bool) {
json_encoder.go#L124: func (enc *jsonEncoder) AddComplex128(key string, val complex128) {
json_encoder.go#L129: func (enc *jsonEncoder) AddComplex64(key string, val complex64) {
json_encoder.go#L134: func (enc *jsonEncoder) AddDuration(key string, val time.Duration) {
json_encoder.go#L139: func (enc *jsonEncoder) AddFloat64(key string, val float64) {
json_encoder.go#L144: func (enc *jsonEncoder) AddFloat32(key string, val float32) {
json_encoder.go#L149: func (enc *jsonEncoder) AddInt64(key string, val int64) {
json_encoder.go#L154: func (enc *jsonEncoder) resetReflectBuf() {
json_encoder.go#L167: func (enc *jsonEncoder) encodeReflected(obj interface{}) ([]byte, error) {
json_encoder.go#L179: func (enc *jsonEncoder) AddReflected(key string, obj interface{}) error {
json_encoder.go#L189: func (enc *jsonEncoder) OpenNamespace(key string) {
json_encoder.go#L195: func (enc *jsonEncoder) AddString(key, val string) {
json_encoder.go#L200: func (enc *jsonEncoder) AddTime(key string, val time.Time) {
json_encoder.go#L205: func (enc *jsonEncoder) AddUint64(key string, val uint64) {
json_encoder.go#L210: func (enc *jsonEncoder) AppendArray(arr ArrayMarshaler) error {
json_encoder.go#L218: func (enc *jsonEncoder) AppendObject(obj ObjectMarshaler) error {
json_encoder.go#L232: func (enc *jsonEncoder) AppendBool(val bool) {
json_encoder.go#L237: func (enc *jsonEncoder) AppendByteString(val []byte) {
json_encoder.go#L247: func (enc *jsonEncoder) appendComplex(val complex128, precision int) {
json_encoder.go#L265: func (enc *jsonEncoder) AppendDuration(val time.Duration) {
json_encoder.go#L277: func (enc *jsonEncoder) AppendInt64(val int64) {
json_encoder.go#L282: func (enc *jsonEncoder) AppendReflected(val interface{}) error {
json_encoder.go#L292: func (enc *jsonEncoder) AppendString(val string) {
json_encoder.go#L299: func (enc *jsonEncoder) AppendTimeLayout(time time.Time, layout string) {
json_encoder.go#L306: func (enc *jsonEncoder) AppendTime(val time.Time) {
json_encoder.go#L318: func (enc *jsonEncoder) AppendUint64(val uint64) {
json_encoder.go#L323: func (enc *jsonEncoder) AddInt(k string, v int) { enc.AddInt64(k, int64(v)) }
json_encoder.go#L324: func (enc *jsonEncoder) AddInt32(k string, v int32) { enc.AddInt64(k, int64(v)) }
json_encoder.go#L325: func (enc *jsonEncoder) AddInt16(k string, v int16) { enc.AddInt64(k, int64(v)) }
json_encoder.go#L326: func (enc *jsonEncoder) AddInt8(k string, v int8) { enc.AddInt64(k, int64(v)) }
json_encoder.go#L327: func (enc *jsonEncoder) AddUint(k string, v uint) { enc.AddUint64(k, uint64(v)) }
json_encoder.go#L328: func (enc *jsonEncoder) AddUint32(k string, v uint32) { enc.AddUint64(k, uint64(v)) }
json_encoder.go#L329: func (enc *jsonEncoder) AddUint16(k string, v uint16) { enc.AddUint64(k, uint64(v)) }
json_encoder.go#L330: func (enc *jsonEncoder) AddUint8(k string, v uint8) { enc.AddUint64(k, uint64(v)) }
json_encoder.go#L331: func (enc *jsonEncoder) AddUintptr(k string, v uintptr) { enc.AddUint64(k, uint64(v)) }
json_encoder.go#L332: func (enc *jsonEncoder) AppendComplex64(v complex64) { enc.appendComplex(complex128(v), 32) }
json_encoder.go#L333: func (enc *jsonEncoder) AppendComplex128(v complex128) { enc.appendComplex(complex128(v), 64) }
json_encoder.go#L334: func (enc *jsonEncoder) AppendFloat64(v float64) { enc.appendFloat(v, 64) }
json_encoder.go#L335: func (enc *jsonEncoder) AppendFloat32(v float32) { enc.appendFloat(float64(v), 32) }
json_encoder.go#L336: func (enc *jsonEncoder) AppendInt(v int) { enc.AppendInt64(int64(v)) }
json_encoder.go#L337: func (enc *jsonEncoder) AppendInt32(v int32) { enc.AppendInt64(int64(v)) }
json_encoder.go#L338: func (enc *jsonEncoder) AppendInt16(v int16) { enc.AppendInt64(int64(v)) }
json_encoder.go#L339: func (enc *jsonEncoder) AppendInt8(v int8) { enc.AppendInt64(int64(v)) }
json_encoder.go#L340: func (enc *jsonEncoder) AppendUint(v uint) { enc.AppendUint64(uint64(v)) }
json_encoder.go#L341: func (enc *jsonEncoder) AppendUint32(v uint32) { enc.AppendUint64(uint64(v)) }
json_encoder.go#L342: func (enc *jsonEncoder) AppendUint16(v uint16) { enc.AppendUint64(uint64(v)) }
json_encoder.go#L343: func (enc *jsonEncoder) AppendUint8(v uint8) { enc.AppendUint64(uint64(v)) }
json_encoder.go#L344: func (enc *jsonEncoder) AppendUintptr(v uintptr) { enc.AppendUint64(uint64(v)) }
json_encoder.go#L346: func (enc *jsonEncoder) Clone() Encoder {
json_encoder.go#L352: func (enc *jsonEncoder) clone() *jsonEncoder {
json_encoder.go#L361: func (enc *jsonEncoder) EncodeEntry(ent Entry, fields []Field) (*buffer.Buffer, error) {
json_encoder.go#L433: func (enc *jsonEncoder) truncate() {
json_encoder.go#L437: func (enc *jsonEncoder) closeOpenNamespaces() {
json_encoder.go#L444: func (enc *jsonEncoder) addKey(key string) {
json_encoder.go#L455: func (enc *jsonEncoder) addElementSeparator() {
json_encoder.go#L471: func (enc *jsonEncoder) appendFloat(val float64, bitSize int) {
json_encoder.go#L488: func (enc *jsonEncoder) safeAddString(s string) {
json_encoder.go#L498: func (enc *jsonEncoder) safeAddByteString(s []byte) {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |